package com.huitone.smspfm.core.filter.wdog;

import com.huitone.smspfm.context.app.AppManager;
import com.huitone.smspfm.core.config.AppStaticConfigs;

/**   
* @Title ReapMsgFilterTaskWatchDog.java 
* @Package com.huitone.smspfm.core.filter.wdog 
* @Description TODO(用一句话描述该文件做什么) 
* @author ybliang   
* @date 2017年6月26日 下午3:11:56 
* @version V1.0   
*/
public class ReapMsgFilterTaskWatchDog extends Thread {
	
	@Override
	public void run() {
		
		while(!this.isInterrupted() && AppManager.isRunning()) {
			
			AppStaticConfigs.zsetOpts.removeByScore(AppStaticConfigs.iSMRepZSet, 0, System.currentTimeMillis());
			
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				break;
			}
		}
	}
}
